local xunlong_filter = fk.CreateSkill {
  name = "#th_xunlong_filter",
}

xunlong_filter:addEffect("active", {
  name = "#th_xunlong_filter",
  min_card_num = 1,
  max_target_num = 1,
  card_filter = function(self, player, to_select, selected)
    if self.expand_pile and table.contains(self.expand_pile, to_select) then
      return true
    end
  end,
  target_filter = function(self, player, to_select, selected)
    return #selected == 0 and to_select ~= player
  end
})

return xunlong_filter